package com.xm2.demo.model;

import javax.persistence.*;

/**
 * @Create
 * @create 2018-12-11 13:46
 * @Description：职务
 */
@Entity
@Table(name = "position")
public class Position {

    @Id  //主键字段
    @Column(name="position_Id")
    private int positionId;//职务编号自增长

    @Column(name = "position_name ",columnDefinition="varchar(40) default null COMMENT '职务名称'")
    private String positionName ;//职务名称

    @Column(name = "belong ",columnDefinition="varchar(40) default null COMMENT '职务所在位置'")
    private String belong ;//职务所在位置

    @Column(name = "state_arr ",columnDefinition="varchar(255) default null COMMENT '职务控制的状态'")
    private String stateArr ;//职务控制的状态

    public int getPositionId() {
        return positionId;
    }

    public void setPositionId(int positionId) {
        this.positionId = positionId;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public String getBelong() {
        return belong;
    }

    public void setBelong(String belong) {
        this.belong = belong;
    }

    public String getStateArr() {
        return stateArr;
    }

    public void setStateArr(String stateArr) {
        this.stateArr = stateArr;
    }
}
